package com.gz.logistics.util;

import android.content.Context;
import android.widget.Toast;

public class ToastUtils {

	public static void showToast(Context context, String msg,
			int... duration) {

		if (duration != null && duration.length > 0) {
			Toast.makeText(context, msg, duration[0]).show();

		} else {
			Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
		}

	}

}
